import request from '@/util/request'
import type {
  userInfoRequestType,
  userInfoResponseType,
} from '@/store/modules/types'
/**
 *
 * @param {*} data
 * @returns promise
 */
export const login = (data: userInfoRequestType) => {
  return request({
    url: '/sys/login',
    method: 'POST',
    data: data,
  })
}
